//
//  plugin.h
//  plugin
//
//  Created by 曦 王 on 13-1-4.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Vehicle.h"
#import <UIKit/UIKit.h>

@interface plugin : NSObject

//获取设备周边空车信息
- (NSArray *) getVehicle:(NSString *)phone bylat:(NSInteger)lat bylon:(NSInteger)lon;

//拨打电话
- (void) callVehicle:(NSString *)phone bySuid:(NSString *)suid;

//注册授权用户
//成功后返回电话号码   如值为-1:无效  0:已注册    
- (NSString *)registerUser:(NSString *)phone byUserName:(NSString *)userName;

//一键招车
//如值为 -1:参数无效  0:正在运行  1:调用成功
- (NSString *)getOneCall:(NSString *)userid byFromLat:(NSString *)fromlat byFromLon:(NSString *)fromlon byFromAddress:(NSString *)fromAddress byToLat:(NSString *)toLat byToLon:(NSString *)toLon byToAddress:(NSString *)toAddress byName:(NSString *)userName;

//预约招车
// 如值为  0:预约失败  1:预约成功  -1:无效
- (NSString *)getReservationCall:(NSString *)userid byFromLat:(NSString *)fromlat byFromLon:(NSString *)fromlon byFromAddress:(NSString *)fromAddress byToLat:(NSString *)toLat byToLon:(NSString *)toLon byToAddress:(NSString *)toAddress byName:(NSString *)userName byReservationTime:(NSDate *)reservationTime;
@end
